***** Description *****
This replication archive contains all data, code, and information to replicate the empirical results, tables, and figures in "Fixed Effects and Post-Treatment Bias in Legacy Studies" by Jonathan Homola, Miguel M. Pereira, and Margit Tavits.



***** File Overview *****

** R scripts **
elections_fes.R -- R script to generate the results in Tables SM3.1-SM3.3 and DA.1-DA.2, as well as Figures 4 and SM3.1

elections_noise.R -- R script to generate the results in Table SM6.1 and Figures SM6.1-SM6.2

elections_provinces.R -- R script to generate the results in Tables DA.7-DA.8, as well as Figure SM5.1

evs_fes.R -- R script to generate the results in Tables SM4.1-SM4.3 and DA.3-DA.6, as well as Figures 5 and SM4.1-SM4.2

evs_noise.R -- R script to generate the results in Table SM6.1 and Figures SM6.3-SM6.4


** Data files **
elections_fes.RData -- This dataset contains all the data necessary to generate the main election results

elections_provinces.RData -- This dataset contains all the data necessary to generate the election results based on Prussian provinces

evs.csv -- This dataset contains all the data necessary to generate the main EVS results

evs_noise.csv -- This dataset contains all the data necessary to generate the EVS noise simulation results


** PDF files **
HPT_LegacyFEs_SM.pdf -- Supplementary Material

HPT_LegacyFEs_DA.pdf -- Dataverse Appendix



***** Additional Information *****

The following R packages were used to produce the results:
1) stargazer version 5.2.3
2) geosphere version 1.5-18
3) geostatsp version 2.0.1
4) mvnfast version 0.2.8
5) mvtnorm version 1.2-3



***** References *****
Homola, Jonathan, Miguel M. Pereira, and Margit Tavits. "Fixed Effects and Post-Treatment Bias in Legacy Studies." American Political Science Review.